package me.wcy.express.constants;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import me.wcy.express.activity.LoginActivity;
import me.wcy.express.utils.ActivityCollector;

public class LoginOutBroadcastReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        ActivityCollector.finishAll();  // 销毁所有活动
        //跳转登录界面
        Intent intent_login = new Intent(context, LoginActivity.class);
        intent_login.putExtra("forced_logoff",true);
        context.startActivity(intent_login);
    }
}